package com.scs.application.modules.wm.controller;

import com.scs.application.core.mvc.controller.CrudController;
import com.scs.application.modules.sys.model.RestResult;
import com.scs.application.modules.wm.entity.StockCheckItem;
import com.scs.application.modules.wm.service.StockCheckItemService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 */
@RestController
@RequestMapping("/wm/stock_check_item")
public class StockCheckItemController extends CrudController<StockCheckItemService, StockCheckItem>{
    /**
     * 获取该耗材未盘数量及已盘数量
     */
    @GetMapping("/getStockSumByMatr")
    public RestResult getStockSumByMatr(String checkId, String matrId, String locationId) {
        return service.getStockSumByMatr(checkId,matrId,locationId);
    }
}
